Optimal. Leaf size=233 \[ -\frac {2 d \sqrt {a+\frac {b}{x^2}}}{\sqrt {c+\frac {d}{x^2}} x}+\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x+\frac {2 \sqrt {c} \sqrt {d} \sqrt {a+\frac {b}{x^2}} E\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}-\frac {\sqrt {c} (b c+a d) \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 233, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {382, 484, 545,
429, 506, 422} \begin {gather*} -\frac {2 d \sqrt {a+\frac {b}{x^2}}}{x \sqrt {c+\frac {d}{x^2}}}+x \sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}}-\frac {\sqrt {c} \sqrt {a+\frac {b}{x^2}} (a d+b c) F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {c+\frac {d}{x^2}} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}}}+\frac {2 \sqrt {c} \sqrt {d} \sqrt {a+\frac {b}{x^2}} E\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c+\frac {d}{x^2}} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 382
Rule 422
Rule 429
Rule 484
Rule 506
Rule 545
Rubi steps
\begin {align*} \int \sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} \, dx &=-\text {Subst}\left (\int \frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{x^2} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x-2 \text {Subst}\left (\int \frac {\frac {1}{2} (b c+a d)+b d x^2}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x-(2 b d) \text {Subst}\left (\int \frac {x^2}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )-(b c+a d) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {2 d \sqrt {a+\frac {b}{x^2}}}{\sqrt {c+\frac {d}{x^2}} x}+\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x-\frac {\sqrt {c} (b c+a d) \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}+(2 c d) \text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (c+d x^2\right )^{3/2}} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {2 d \sqrt {a+\frac {b}{x^2}}}{\sqrt {c+\frac {d}{x^2}} x}+\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x+\frac {2 \sqrt {c} \sqrt {d} \sqrt {a+\frac {b}{x^2}} E\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}-\frac {\sqrt {c} (b c+a d) \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.13, size = 205, normalized size = 0.88 \begin {gather*} -\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x \left (\sqrt {\frac {a}{b}} \left (b+a x^2\right ) \left (d+c x^2\right )+2 i a d x \sqrt {1+\frac {a x^2}{b}} \sqrt {1+\frac {c x^2}{d}} E\left (i \sinh ^{-1}\left (\sqrt {\frac {a}{b}} x\right )|\frac {b c}{a d}\right )+i (b c-a d) x \sqrt {1+\frac {a x^2}{b}} \sqrt {1+\frac {c x^2}{d}} F\left (i \sinh ^{-1}\left (\sqrt {\frac {a}{b}} x\right )|\frac {b c}{a d}\right )\right )}{\sqrt {\frac {a}{b}} \left (b+a x^2\right ) \left (d+c x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 277, normalized size = 1.19
method | result | size |
default | \(\frac {\sqrt {\frac {c \,x^{2}+d}{x^{2}}}\, x \sqrt {\frac {a \,x^{2}+b}{x^{2}}}\, \left (-\sqrt {-\frac {c}{d}}\, a c \,x^{4}+2 c b \sqrt {\frac {c \,x^{2}+d}{d}}\, \sqrt {\frac {a \,x^{2}+b}{b}}\, x \EllipticE \left (x \sqrt {-\frac {c}{d}}, \sqrt {\frac {a d}{b c}}\right )+\sqrt {\frac {c \,x^{2}+d}{d}}\, \sqrt {\frac {a \,x^{2}+b}{b}}\, \EllipticF \left (x \sqrt {-\frac {c}{d}}, \sqrt {\frac {a d}{b c}}\right ) a d x -c b \sqrt {\frac {c \,x^{2}+d}{d}}\, \sqrt {\frac {a \,x^{2}+b}{b}}\, x \EllipticF \left (x \sqrt {-\frac {c}{d}}, \sqrt {\frac {a d}{b c}}\right )-\sqrt {-\frac {c}{d}}\, a d \,x^{2}-\sqrt {-\frac {c}{d}}\, b c \,x^{2}-\sqrt {-\frac {c}{d}}\, b d \right )}{\left (a c \,x^{4}+a d \,x^{2}+c \,x^{2} b +b d \right ) \sqrt {-\frac {c}{d}}}\) | \(277\) |
risch | \(-x \sqrt {\frac {c \,x^{2}+d}{x^{2}}}\, \sqrt {\frac {a \,x^{2}+b}{x^{2}}}+\frac {\left (-\frac {2 c b \sqrt {1+\frac {c \,x^{2}}{d}}\, \sqrt {1+\frac {a \,x^{2}}{b}}\, \left (\EllipticF \left (x \sqrt {-\frac {c}{d}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )-\EllipticE \left (x \sqrt {-\frac {c}{d}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )\right )}{\sqrt {-\frac {c}{d}}\, \sqrt {a c \,x^{4}+a d \,x^{2}+c \,x^{2} b +b d}}+\frac {a d \sqrt {1+\frac {c \,x^{2}}{d}}\, \sqrt {1+\frac {a \,x^{2}}{b}}\, \EllipticF \left (x \sqrt {-\frac {c}{d}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )}{\sqrt {-\frac {c}{d}}\, \sqrt {a c \,x^{4}+a d \,x^{2}+c \,x^{2} b +b d}}+\frac {b c \sqrt {1+\frac {c \,x^{2}}{d}}\, \sqrt {1+\frac {a \,x^{2}}{b}}\, \EllipticF \left (x \sqrt {-\frac {c}{d}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )}{\sqrt {-\frac {c}{d}}\, \sqrt {a c \,x^{4}+a d \,x^{2}+c \,x^{2} b +b d}}\right ) \sqrt {\frac {c \,x^{2}+d}{x^{2}}}\, x^{2} \sqrt {\frac {a \,x^{2}+b}{x^{2}}}\, \sqrt {\left (a \,x^{2}+b \right ) \left (c \,x^{2}+d \right )}}{\left (c \,x^{2}+d \right ) \left (a \,x^{2}+b \right )}\) | \(394\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + \frac {b}{x^{2}}} \sqrt {c + \frac {d}{x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \sqrt {a+\frac {b}{x^2}}\,\sqrt {c+\frac {d}{x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________